import service from '@/utils/request'
// @Tags LsBrand
// @Summary 创建lsBrand表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsBrand true "创建lsBrand表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /lsBrand/createLsBrand [post]
export const createLsBrand = (data) => {
  return service({
    url: '/lsBrand/createLsBrand',
    method: 'post',
    data
  })
}

// @Tags LsBrand
// @Summary 删除lsBrand表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsBrand true "删除lsBrand表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /lsBrand/deleteLsBrand [delete]
export const deleteLsBrand = (params) => {
  return service({
    url: '/lsBrand/deleteLsBrand',
    method: 'delete',
    params
  })
}

// @Tags LsBrand
// @Summary 批量删除lsBrand表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除lsBrand表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /lsBrand/deleteLsBrand [delete]
export const deleteLsBrandByIds = (params) => {
  return service({
    url: '/lsBrand/deleteLsBrandByIds',
    method: 'delete',
    params
  })
}

// @Tags LsBrand
// @Summary 更新lsBrand表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsBrand true "更新lsBrand表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /lsBrand/updateLsBrand [put]
export const updateLsBrand = (data) => {
  return service({
    url: '/lsBrand/updateLsBrand',
    method: 'put',
    data
  })
}

// @Tags LsBrand
// @Summary 用id查询lsBrand表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.LsBrand true "用id查询lsBrand表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /lsBrand/findLsBrand [get]
export const findLsBrand = (params) => {
  return service({
    url: '/lsBrand/findLsBrand',
    method: 'get',
    params
  })
}

// @Tags LsBrand
// @Summary 分页获取lsBrand表列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取lsBrand表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /lsBrand/getLsBrandList [get]
export const getLsBrandList = (params) => {
  return service({
    url: '/lsBrand/getLsBrandList',
    method: 'get',
    params
  })
}

// @Tags LsBrand
// @Summary 不需要鉴权的lsBrand表接口
// @Accept application/json
// @Produce application/json
// @Param data query shopReq.LsBrandSearch true "分页获取lsBrand表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /lsBrand/getLsBrandPublic [get]
export const getLsBrandPublic = () => {
  return service({
    url: '/lsBrand/getLsBrandPublic',
    method: 'get',
  })
}
